<?php
namespace Admin\Controller;

use Think\Controller;
class BaseController extends Controller{
	public function __construct(){
		parent::__construct();
		if(!session('id')){
			$this->error('必须先登录！',U('Admin/Login/login'));
		}
	}
}